<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: 王希辰
  Date: 2021/10/12
  Time: 11:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table>
<tr>
    <th>学号</th>
    <th>姓名</th>
    <th>性别</th>
    <th>电话</th>
    <th>地址</th>
    <th>生日</th>
    <th>邮箱</th>
</tr>
<c:forEach items="${list}" var="s">
    <tr>
        <td>${s.sno}</td>
        <td>${s.sname}</td>
        <td>${s.sex}</td>
        <td>${s.phone}</td>
        <td>${s.address}</td>
        <td><fmt:formatDate value="${s.birthday}" pattern="yyyy-MM-dd" type="date"/></td>
        <td>${s.email}</td>
    </tr>
</c:forEach>
</table>
</body>
</html>
